<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h3><%=data%></h3>

    <p>还有<span>3</span> 秒跳转到<a href="/user">登录</a></p>

    <script>
        let time = 3
        setInterval(() => {
            time--;
            document.querySelector("span").innerText = time
        }, 1000);
        setTimeout(() => {
            window.location.href = "/user"
        }, 3000);
    </script>
</body>
</html>